<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>



<!DOCTYPE html>
<html>
<head id="MyHead">
<script src="/resources/Scripts/jquery.min.js" type="text/javascript"></script>
<script src="/resources/Scripts/JScriptCommon.js" type="text/javascript"></script>
<link href="/resources/Content/StyleSheet.css" rel="stylesheet" type="text/css" />
<script src="/resources/Scripts/jquery.validate.min.js" type="text/javascript"></script>
<script src="/resources/Scripts/jquery.validate.unobtrusive.min.js"
	type="text/javascript"></script>
<link href="/resources/Content/IndexStyle.css" rel="stylesheet" type="text/css" />
<script src="/resources/Res/easyui/jquery.easyui.min.js" type="text/javascript"></script>
<script src="/resources/Res/easyui/locale/easyui-lang-zh_CN.js"
	type="text/javascript"></script>
<link href="/resources/Res/easyui/themes/icon.css" rel="stylesheet"
	type="text/css" />
<link href="/resources/Res/easyui/themes/default/easyui.css" rel="stylesheet"
	type="text/css" />

<title></title>

<script type="text/javascript">
	$(function() {

	});
</script>

<script type='text/javascript'>
	function ajaxFrom(form, url) {
		progressComm();
		$.ajax({
			url : url,
			type : "Post",
			data : $(form).serialize(),
			dataType : "json",
			success : function(data) {
				$.messager.progress('close');
				if ($.messager) {
					$.messager.defaults.cancel = '返回';
					$.messager.defaults.ok = '继续';

					$.messager.confirm('操作提示', data.msg, function(r) {
						if (!r) {
							window.location.href = 'javascript:history.go(-1)';
							
						}
					});
				}

			}
		});

	}

	$(function() {

		$("form").submit(function(form) {
			if (form.result) {
				ajaxFrom(this, this.action);
			}
			return false;
		});
	});
</script>
</head>
<body>
	<div class="mbx">创建 客户资料</div>
	<form action="createCust" method="post">

		<fieldset>
			<legend>
				<input class="submitcss" type="submit" value="创建" /> <input
					class="submitcss" type="button"
					onclick="BackList('Message/D_Customer.jsp')" value="返回" />
			</legend>
			<div class="bigdiv">

				<div class="editor-label">
					<label for="custPhone">手机</label>：
				</div>
				<div class="editor-field">
					<input class="text-box single-line" data-val="true"
						data-val-length="长度不可超过200" data-val-length-max="200" id="custPhone"
						name="custPhone" type="text" value="" /> <span
						class="field-validation-valid" data-valmsg-for="custPhone"
						data-valmsg-replace="true"></span>
				</div>
				<div class="editor-label">
					<label for="custName">姓名</label>：
				</div>
				<div class="editor-field">
					<input class="text-box single-line" data-val="true"
						data-val-length="长度不可超过200" data-val-length-max="200" id="custName"
						name="custName" type="text" value="" /> <span
						class="field-validation-valid" data-valmsg-for="custName"
						data-valmsg-replace="true"></span>
				</div>
				<div class="editor-label">
					<label for="custSex">性别</label>：
				</div>
				<div class="editor-field">
					<input " id="男" type="radio" value="男" name="custSex" />男<input
						" id="女" type="radio" value="女" name="custSex" />女
				</div>
				<div class="editor-label">
					<label for="custGroup">组别</label>：
				</div>
				<div class="editor-field">
					<select data-val="true" data-val-length="长度不可超过200"
						data-val-length-max="200" id="custGroup" name="custGroup"><option
							value="">请选择</option>
						<option value="客户">客户</option>
					</select>
				</div>
				<div class="editor-label">
					<label for="birth">生日</label>：
				</div>
				<div class="editor-field">
					<input class="easyui-datebox" id="birth" name="birth"
						style="width: 214px;" type="text" value="" /> <span
						class="field-validation-valid" data-valmsg-for="birth"
						data-valmsg-replace="true"></span>
				</div>
				<br style="clear: both;" />
				<div class="editor-label">
					<label for="custRemake">备注</label>：
				</div>
				<div class="textarea-box">
					<textarea cols="20" data-val="true" data-val-length="长度不可超过4000"
						data-val-length-max="4000" id="custRemake" name="custRemake"
						rows="2">
</textarea>
					<span class="field-validation-valid" data-valmsg-for="custRemake"
						data-valmsg-replace="true"></span>
				</div>
			</div>
		</fieldset>

	</form>
</body>
</html>
